package com.doctcloud.hisinfo.histable.domain.comm;

import com.doctcloud.common.core.annotation.Excel;
import com.doctcloud.common.core.annotation.TableDesc;
import lombok.*;

import java.io.Serializable;

import static com.doctcloud.common.core.utils.StringUtils.trim;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@EqualsAndHashCode(of = {"isAttrCode"})
@TableDesc("科室内外科属性字典")
//public class DeptIsAttrDict extends BaseCharsetEntity {
public class DeptIsAttrDictDo implements Serializable {
    private static final long serialVersionUID = 1L;
    @Excel(name = "序号")
    private Integer serialNo;
    @Excel(name = "属性代码")
    private Integer isAttrCode;
    @Excel(name = "属性名称")
    private String isAttrName;
    @Excel(name = "输入码")
    private String inputCode;

    @Data
    public static class primaryKey {
        private final String OiAttrCode;
        public primaryKey(String OiAttrCode) {
            this.OiAttrCode = OiAttrCode;
        }
    }

//    public String getIsAttrName() {
//        return super.processGet(isAttrName);
//    }
//
//    public void setIsAttrName(String isAttrName) {
//        this.isAttrName = super.processSet(isAttrName);
//    }

    public void setIsAttrName(String isAttrName) {
        this.isAttrName = trim(isAttrName);
    }

    public void setInputCode(String inputCode) {
        this.inputCode = trim(inputCode);
    }
}
